How to use aggregate function in WHERE clause in SQL

join shbcf.ru